package com.xlh.param.course;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 章节评分
 * <p>
 * Created by lx on 2019/10/30.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ChapterScoreParam {

    @ApiModelProperty(value = "章节难度评分")
    @NotBlank(message = "章节难度评分不能为空")
    @Length(max = 1, message = "章节难度评分不能超过1个字符")
    private String score;

}
